namespace Jumpton.SFA.Server.Entity {
    using System;
    using System.Collections.Generic;
    using System.Text;
    using Jumpton.Persistent;
    using System.Data;
    using System.Runtime.Serialization;
    
    
    [System.SerializableAttribute()]
    [Map("PAYMENTS_INFO")]
    public class PAYMENTS_INFO : ObjectRow {
        
        public PAYMENTS_INFO() {
        }
        
        /// <summary>
        /// 构造函数
        /// </summary>
        /// <param name="dataRow">DataTable 中的一行数据</param>
        /// <param name="objectTable">存储当前对象的数据表格</param>
        public PAYMENTS_INFO(System.Data.DataRow dataRow, ObjectTable parent) : 
                base(dataRow, parent) {
        }
        
        /// <summary>
        /// 供反序列化使用的构造函数
        /// </summary>
        /// <param name="info"></param>
        /// <param name="context"></param>
        protected PAYMENTS_INFO(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : 
                base(info, context) {
        }

        [Key("ID")]
        public decimal ID
        {
            get
            {
                return (System.Int32)GetValue("ID");
            }
            set
            {
                SetValue("ID", value);
            }
        }
        
        [Field("CUSTOMER_ID")]
        public decimal CUSTOMERID {
            get {
                return (System.Decimal)GetValue("CUSTOMERID");
            }
            set {
                SetValue("CUSTOMERID", value);
            }
        }
        
        [Field("ACCOUNT_NUMBER")]
        public string ACCOUNTnumeric {
            get {
                return (System.String)GetValue("ACCOUNTnumeric");
            }
            set {
                SetValue("ACCOUNTnumeric", value);
            }
        }
        
        [Field("BANK_CODE")]
        public string BANKCODE {
            get {
                return (System.String)GetValue("BANKCODE");
            }
            set {
                SetValue("BANKCODE", value);
            }
        }
        
        [Field("PAID_BY_CODE")]
        public string PAIDBYCODE {
            get {
                return (System.String)GetValue("PAIDBYCODE");
            }
            set {
                SetValue("PAIDBYCODE", value);
            }
        }
        
        [Field("BILL_TO_CODE")]
        public string BILLTOCODE {
            get {
                return (System.String)GetValue("BILLTOCODE");
            }
            set {
                SetValue("BILLTOCODE", value);
            }
        }
        
        [Field("PAY_TERM_ID")]
        public decimal PAYTERMID {
            get {
                return (System.Decimal)GetValue("PAYTERMID");
            }
            set {
                SetValue("PAYTERMID", value);
            }
        }
        
        [Field("CREDIT_BALANCE")]
        public decimal CREDITBALANCE {
            get {
                return (System.Decimal)GetValue("CREDITBALANCE");
            }
            set {
                SetValue("CREDITBALANCE", value);
            }
        }

        [Field("LAST_UPDATER")]
        public string LAST_UPDATER
        {
            get
            {
                return (System.String)GetValue("LAST_UPDATER");
            }
            set
            {
                SetValue("LAST_UPDATER", value);
            }
        }

        [Field("LAST_UPDATE_TIME")]
        public long LAST_UPDATE_TIME
        {
            get
            {
                return (long)GetValue("LAST_UPDATE_TIME", DateTime.Now);
            }
            set
            {
                SetValue("LAST_UPDATE_TIME", value);
            }
        }

        [Field("CREATE_TIME")]
        public long CREATETIME
        {
            get
            {
                return (long)GetValue("CREATETIME", DateTime.Now);
            }
            set
            {
                SetValue("CREATETIME", value);
            }
        }

        [Field("ACTIVE")]
        public Boolean ACTIVE
        {
            get
            {
                return (System.Boolean)GetValue("ACTIVE", false);
            }
            set
            {
                SetValue("ACTIVE", value);
            }
        }
        [Field("CREDIT_LIMIT")]
        public decimal CREDITLIMIT {
            get {
                return (System.Decimal)GetValue("CREDITLIMIT");
            }
            set {
                SetValue("CREDITLIMIT", value);
            }
        }
        
        [Field("OVERDUE")]
        public decimal OVERDUE {
            get {
                return (System.Decimal)GetValue("OVERDUE");
            }
            set {
                SetValue("OVERDUE", value);
            }
        }
        
        [Field("PDC_INFO")]
        public decimal PDCINFO {
            get {
                return (System.Decimal)GetValue("PDCINFO");
            }
            set {
                SetValue("PDCINFO", value);
            }
        }
    }
}
